runOnStartup(async () => {
    window.addEventListener("tipWindowTick", (e) => {
    })
    window.addEventListener("tipWindowInit", (e) => {
        HintBox_HintBoxInit.Init()
    })
});
globalThis.HintBox_HintBoxInit = {
    Init: function () {
        const UItipWindowMaks = runtime.objects.UI_tip_windowMask?.getFirstInstance();
        const UTipText = runtime.objects.UI_tip_text?.getFirstInstance()
        const UTipIcon = runtime.objects.UI_tipicon?.getFirstInstance()
        const UTipConfigureText = runtime.objects.UI_tip_text2?.getFirstInstance()
        HintBox_HintBoxInit.initPos = {
            X: UItipWindowMaks?.x, Y: UItipWindowMaks?.y
        }
        if (UTipIcon == null || UTipIcon == null || UItipWindowMaks == null) return
        UItipWindowMaks.addChild(UTipIcon, {
            transformX: true,
            transformY: true,
            transformWidth: false,
            transformHeight: false,
            transformAngle: true,
            transformZElevation: true,
            destroyWithParent: true
        })
        UItipWindowMaks.addChild(UTipText, {
            transformX: true,
            transformY: true,
            transformWidth: false,
            transformHeight: false,
            transformAngle: true,
            transformZElevation: true,
            destroyWithParent: true
        })
        UItipWindowMaks.addChild(UTipConfigureText, {
            transformX: true,
            transformY: true,
            transformWidth: false,
            transformHeight: false,
            transformAngle: true,
            transformZElevation: true,
            destroyWithParent: true
        })
    }

}
export default HintBox_HintBoxInit